#include "b_config.h"
#include "hal/inc/b_hal_wdt.h"
#include "ciu32l051_std.h"
int bMcuWdtStart(uint8_t timeout_s)
{
    /* Ê¹ÄÜRCLÊ±ÖÓ */
    std_rcc_rcl_enable();
    while(std_rcc_get_rcl_ready() != 1)
    {
    };

    /* Ê¹ÄÜIWDGµÄÐ´È¨ÏÞ */
    std_iwdg_write_access_enable();

    /* ÅäÖÃIWDG²ÎÊý */
    std_iwdg_set_overflow_period(IWDG_OVERFLOW_PERIOD_8192);

    /* IWDGÊ¹ÄÜ */
    std_iwdg_start();
}

int bMcuWdtFeed()
{
   std_iwdg_refresh();
}

